package com.boot.management_boot.controller;

import com.boot.management_boot.Utils.time_mouth;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * @Author 初衷.
 * @Date 2020/10/17
 **/
public class demo {
    public static void main(String[] args) throws ParseException {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
        Date parse = dateFormat.parse("2020-10-06");
        String format = dateFormat.format(parse);
        String firstDayOfMonth = time_mouth.getFirstDayOfMonth(1);
        String lastDayOfMonth = time_mouth.getLastDayOfMonth(1);
    }

}
